
import React from 'react';
import {
  BrowserRouter as Router,
  Switch,
  Route,
} from 'react-router-dom';
import Login from './views/Login';
import Article from './views/Article';
import { articleUrl } from './common/constant';

function App() {
  return (
    <Router>
      <Switch>
        <Route path={articleUrl}><Article /></Route>
        <Route path="/"><Login /></Route>
      </Switch>
    </Router>
  )
}

export default App;
